<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.2" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />
<?php if ($this->_var['cat_style']): ?>
<link href="<?php echo $this->_var['cat_style']; ?>" rel="stylesheet" type="text/css" />
<?php endif; ?>

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,global.js,compare.js')); ?>
</head>
<body>
<?php echo $this->fetch('library/page_header.lbi'); ?>
<?php echo $this->fetch('library/search_form.lbi'); ?>
<?php echo $this->fetch('library/ur_here.lbi'); ?>
<div class="block clearfix">

  <div id="areaLeft">
	  <div id="goodsLtop">
		 <div class="cartBox">
		  <?php echo $this->fetch('library/cart.lbi'); ?>
		 </div>
			<div class="Gaction clearfix">
		  <a href="user.php"><?php echo $this->_var['lang']['label_login']; ?></a><a href="user.php?act=register"><?php echo $this->_var['lang']['label_regist']; ?></a>
			<a href="user.php?act=profile"><?php echo $this->_var['lang']['label_profile']; ?></a><a href="user.php?act=collection_list"><?php echo $this->_var['lang']['label_collection']; ?></a>
		 </div>
		</div>
	
	<?php echo $this->fetch('library/category_tree.lbi'); ?>
	<?php echo $this->fetch('library/promotion_info.lbi'); ?>
	<?php echo $this->fetch('library/history.lbi'); ?>
	<?php echo $this->fetch('library/goods_attrlinked.lbi'); ?>
	<?php echo $this->fetch('library/filter_attr.lbi'); ?>
  <?php echo $this->fetch('library/price_grade.lbi'); ?>
  
	</div>


  <div id="areaRight">
    <?php echo $this->fetch('library/exchange_hot.lbi'); ?>
     <script type="text/javascript">
      window.onload = function()
      {
        Compare.init();
        fixpng();
      }
      var button_compare = '';
    </script>
	  <div class="goods_listTit">
<div class="ListTit">&nbsp;</div>
  <form method="GET" class="sort" name="listform" style="_margin-top:3px;">
      <select name="sort" style="border:1px solid #ccc;">
        <?php echo $this->html_options(array('options'=>$this->_var['lang']['sort'],'selected'=>$this->_var['pager']['sort'])); ?>
      </select>
      <select name="order" style="border:1px solid #ccc;">
        <?php echo $this->html_options(array('options'=>$this->_var['lang']['order'],'selected'=>$this->_var['pager']['order'])); ?>
      </select>
      <input type="image" name="imageField" src="themes/letphp/images/bnt_go.gif" style=" position:relative; top:3px;" alt="go"/>
      <input type="hidden" name="category" value="<?php echo $this->_var['category']; ?>" />
      <input type="hidden" name="display" value="<?php echo $this->_var['pager']['display']; ?>" id="display" />
      <input type="hidden" name="brand" value="<?php echo $this->_var['brand_id']; ?>" />
      <input type="hidden" name="price_min" value="<?php echo $this->_var['price_min']; ?>" />
      <input type="hidden" name="price_max" value="<?php echo $this->_var['price_max']; ?>" />
      <input type="hidden" name="filter_attr" value="<?php echo $this->_var['filter_attr']; ?>" />
      <input type="hidden" name="page" value="<?php echo $this->_var['pager']['page']; ?>" />
    </form>
</div>

    <?php if ($this->_var['category'] > 0): ?>
  <form name="compareForm" action="compare.php" method="post" onSubmit="return compareGoods(this);">
    <?php endif; ?>
    <div class="goodsListBg clearfix">
    <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
    <?php if ($this->_var['goods']['goods_id']): ?>
     <div class="General_goodsBox">
           <a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" alt="<?php echo $this->_var['goods']['goods_name']; ?>" class="goodsimg" /></a><br />
           <p><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo $this->_var['goods']['goods_name']; ?></a></p>
           <?php echo $this->_var['lang']['exchange_integral']; ?><font class="price"><?php echo $this->_var['goods']['exchange_integral']; ?></font>
    </div>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </div>
  <?php if ($this->_var['category'] > 0): ?>
  </form>
  <?php endif; ?>

<script type="Text/Javascript" language="JavaScript">
<!--

function selectPage(sel)
{
  sel.form.submit();
}

//-->
</script>
<script type="text/javascript">
window.onload = function()
{
  Compare.init();
  fixpng();
}
<?php $_from = $this->_var['lang']['compare_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
<?php if ($this->_var['key'] != 'button_compare'): ?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php else: ?>
var button_compare = '';
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
var compare_no_goods = "<?php echo $this->_var['lang']['compare_no_goods']; ?>";
</script>
		<?php echo $this->fetch('library/pages.lbi'); ?>
	</div>

</div>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>
</html>
